local hx__tushe = fk.CreateSkill {
  name = "hx__tushe",
}

hx__tushe:addEffect(fk.TargetSpecified, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__tushe.name) and
      data.card.type ~= Card.TypeEquip and data.firstTarget and
      not table.find(player:getCardIds("h"), function(id)
        return Fk:getCardById(id).type == Card.TypeBasic
      end) and
      #data.use.tos > 0
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(#data.use.tos, hx__tushe.name)
  end,
})

return hx__tushe
